package threadcoreknowledge.startThread;

/**
 * @Author wushaopei
 * @Date 2021/2/25 10:42
 * @Version 1.0
 */
public class StartAndRunMethod {

    public static void main(String[] args) {
        Runnable runnable = () -> {

            // main
            //Thread-0
            System.out.println(Thread.currentThread().getName());
        };
        runnable.run();
        new Thread(runnable).start();
    }

}
